fixing some bugs

    - handling POLLHUP properly
    - invalidating lstn_sock in server code
    - removing unneeded param of handle_succcess()