Simplified stop task checking.