Fix. Cleanup socket callback.