That's there to finalise the JPEG-2000 compression as far as I understand it, not close a file handle so no, it doesn't need to be in a finally.