Added a Closeables class since I forsee that it will be a common task