implement stop command