Clean up on-connect
Added test which ducktypes arguments to socket lifecycle callbacks, got it to fail