Update ChronicleReplication.java

// don't forget to call close on the map, as it will leave the socket connections open.