clientTimeoutId declared after it was already introduced in finish(). This works but reads funny.