Force ghc-modi to terminate on close project.