Added thigns to close/open stdin in FE to keep LaunchMON from stealing it.