Added manual exit to terminal