Apply minor changes.
Ensure disconnect() does not open connection if already disconnected.

This change prevents the underlying connection from creating and opening
a new socket when StreamConnection::disconnect() is invoked on a closed
connection. Partially related to #8.