Added cleaning on directive destroy

Added cleaning on directive destroy
Merge pull request #3 from clementlamoureux/patch-1

Added cleaning on directive destroy