Fix. crash on tcp connect.
Add. `closed` method to handle.