Dispose now disconnects; Disconect now checks to see if the connection is connected.
Fixed code analysis.