Cleaned up file open