Exit command now works on both client and server side