close both sockets
fix typo; break out fini
move fini
rm redundant var
make type for context
add handler to type
mv fini
make fini use type
break up init
rm unused var
expose type; rm unused vars
break up main run loop; expose fini
expose run
don't capture main loop