Support chained exceptions in PHP 5.3+