save session flash when handling exceptions