Modified non-system handler to detect control-c before transaction