Refactored completion server to use zsocket