Dispose the connection before restarting (#28)