Merge pull request #751 from mulesoft/MULE-7642

MULE-7642: only execute close tasks on the first correct call to the clo...
(cherry picked from commit 9f1f62256de188bb5c19380d671e14c188ea27db)

Conflicts:
	transports/file/src/test/java/org/mule/transport/file/FileMuleMessageFactoryTestCase.java