Added support for closing files again