handling ctl-c on priority queue wait in  Node