Disconnects from DB during the sleep and never sleeps longer than 90% of max execution time if it's set.
Merge pull request #2 from Srokap/db_connections_drop

Disconnects from DB during the sleep and never sleeps longer than 90% of max execution time if it's set.