Added cleaning on directive destroy

Added cleaning on directive destroy