@Override
	public void close() throws IOException {
		if (xmlEncoder != null) {
			xmlEncoder.flush();
			xmlEncoder.close();
			xmlEncoder = null;
		}
		if (fs != null) {
			try {
				fs.close();
				fs = null;
			} catch (IOException e) {
				e.printStackTrace();
			}

		}
		if (xmlDecoder != null) {
			xmlDecoder.close();
			xmlDecoder = null;
		}

		if (fi != null) {
			try {
				fi.close();
				fi = null;
			} catch (IOException e) {
				e.printStackTrace();
			}
		}
		connectionInStatus = false;
		connectionOutStatus = false;
	}