Geometric Phase of an Open System