Make sure to closing all file streams

This is also being done in the finally. It can be removed here