test on_accept callback. fix fini sequencing