fix-closed-db-connections
master
This PR is fixing the following bug with idle db connections.
Closes #4675.