Modify socket delletion to handle minor api change in pyzmq 14