Add on_close_in and on_close_out hooks