if (null != socket) { try { socket.close(); } catch (IOException exception) { } }
if (null != stream) { try { stream.close(); } catch (IOException exception) { } }
if (null != stream) { try { stream.flush(); stream.close(); } catch (IOException exception) { } }