Improved exception handling in eigensolvers