Check for a valid connection before using connection to handle scenarios where the initial connection failed
Check for a valid connection before using connection to handle scenarios where the initial connection failed

surfdome/cronlock,kvz/cronlock,channelgrabber/cronlock,bkarakashev/cronlock,PeerJ/cronlock