Stop rescans when a websocket client disconnects.

Fixes #66.