MULE-8054: Adding check to make sure the folder is open before closing i...

...t.
it doesn't make sense to have this message instead of the one with the FOLDER_EXCEPTION_FORMAT mask