Resource removing, temp files management