Support configuring a disconnect timeout.
Try to fail requests quicker when the connection is closed.
Avoid an NPE.