Avoid open resources