private static void close ( Closeable closeable ) { if ( closeable != null ) { try { closeable . close ( ) ; } catch ( IOException ignored ) { logger . error ( "Failed to close output stream: " + ignored . getMessage ( ) ) ; } } }
Closes a Closeable and swallows any exceptions that might occur in the process .