/** Sends cached records and closes the channel */ @Override public void close() { super.close(); try { channel.close(); } catch (IOException e) { System.err.println( "WARNING: Thermostat error closing socket channel: [" + socket.getAbsolutePath() + "]"); e.printStackTrace(); } }