Bugfix: correct exit condition of tick()

Also: better logging of client request error