Check for file close errors