TCP client is now able to do a callback on disconnect. Use it to trigger a graceful exit