Handle non-standard exceptions