Catch cleanup cron errors
Fixings for PHP 5.3. Thanks @RandyWalker