Adding 'ResetTerminal' to signal handler