Added Cure.stop and send_error function.