Modify stop and exit command.