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

...t.
For the log message to be useful I thnk you need to say what caused the exception 
i.e.  "Unexpected exception closing folder " +  folder + ":" + e.getMessage()  (using String.format() )