public void disconnect(){
		//disconnect our connections
		pulse = false;
		try {
			to_peer.flush();
			to_peer.close();
			from_peer.close();
			socket.close();
		} catch (IOException e) {
			System.err.println("Closing peer:" + ip + " has somehow failed."+
								" It was probably already dead :( ");
		}
		
	}