Added uncought exception handler