Removed error function in file close, etc