Add option to unref TCP socket and reconnect timer

Calling `unref()` on the socket and timers allows the process to exit without
having to close the stream.