Made StackSocket disposable