Chunk server: implement replicator shutdown in order to cleanup authentication context before exiting main().