Created utility method to close Closeables quietly.