Socket sends disconnect event on page close - fixes #19