don't leave file handles open.