throw exception may caused by close in finally blocks in image and editlog