Add logging to detect stuck routine calls.