additional safeguard when removing temp-files