This should be done in ```close(boolean)``` instead of ```initFile(String)```.