Fixed bug when loading haskell file occurred in already terminated console