allows closing the filehandler