Add possibility to get last exception