Added handler for "stop" command.