This won't handle the case where someone explicitly called handleFileClose() with the image file path.  This code should probably move into doClose() instead.