Corrected use of closure for the client gateway timeout

...Still doesn't function as expected ಠ_ಠ