Release the connection when pinging the database
Merge pull request #386 from chilts/fix-mysql-ping

Release the connection when pinging the database