Fix #10

This is a partial fix since it tries to connect if a connection does not
exist multiple times. However, there is no processing to help reconnect
if the connection fails.