Try harder to remove temporary directories on error