Cron validation and connection handling