Server stop

Allows server to be stopped without shutting down the java vm.