Exception object is missing getPrevious method

Exception object is missing getPrevious method which leads to whole $e object serialization. If stack trace has closures the following error occurs "Serialization of 'Closure' is not allowed" in hybridauth/Hybrid/Storage.php(54).