try {
/*
* An error here can later hang the instance when the session is restored.
* If the session fails to archive, delete it.
*/
info.archiveDataFromSession(session);
} catch (Exception e) {
log.error("Error archiving session! Deleting session.");
ERXApplication app = ERXApplication.erxApplication();
NSMutableDictionary extraInfo = app.extraInformationForExceptionInContext(e, context);
app.reportException(e, context, extraInfo);