Java tutorial
//package com.java2s; //License from project: Artistic License import java.io.Closeable; public class Main { public static void closeQuietly(Closeable closeable) { if (null != closeable) { try { closeable.close(); } catch (Exception e) { e.printStackTrace(); } } } }