re-scope event names, refine tests

- http servers already have a close event, renamed
  open and close to client_open and client_close
- make sure the server actually closes after the socket
  test by first closing the socket