Use with statement instead of manually closing