public void dispose() { leaveStreamOpen( false ); try { closeReadStream(); } catch ( IOException e ) { if ( LOG.isDebugEnabled() ) { LOG.debug( "(Stack) Exception occurred: " + e.getLocalizedMessage(), e ); } else { LOG.error( "Exception occurred: " + e.getLocalizedMessage() ); } } }