Refactor and fix command bus client to properly process responses from server