When a general exception is thrown, removes the corresponding image
entry.