New figures
Close files when model terminates