add process.nextTick to ensure client is not null
1.0.1