modified termination conditions in ServoDrive