Rewrite the StageProfi plugin to handle disconnects, closes #169

Good catch!