Rewrite the StageProfi plugin to handle disconnects, closes #169