Fix supervisor memory leak & ghost connections