Added error handler for PHPUnit so it doesn't exit on error.