Fixed a couple lint warnings

- removed unused variable client
- removed unreachable 'return' after 'throw'
- added semicolon
- host was defined twice
- assigning to undeclared variable syncProc