clean up of MonadApp