Removed leftover file.close