Fix returning of multiple connections to database pool when Close and Dispose are called after each other.