Dispose when connection is not active.