only respond to events we know about
be nicer about closing connections