I had a problem on logging an OutOfMemorryError using a finally block because a new OutOfMemoryError was thrown before the log was written.
It is weird because looking only at the log it seems that the job suddenly finish in the middle of the process with no errors.
Is there any other common case that this situation can happen? Considering that my finally block is only writing the log in a file.