Fix stop command bug and possible lost DMR crashing issue.