fixed case where client reconnects while previous handler is still doing jobs for it