lib/client: fix stalls with large payloads

Replace call to net.Socket#destroy() with net.Socket#destroySoon();
the former closes the connection immediately while the latter waits
until any pending writes have been written.

Point of action: calling send() + disconnect() before the 'connect'
event has been emitted still doesn't work.

Suggested reviewers: @Qard @themitchy