added support for general exception