add connection connected status for client connection

Signed-off-by: Mark Ellzey <socket@gmail.com>
Added on_event hook / cleanup