added exit to server