Removed superfluous .close()