using the new disposing event to preemptively shutdown services/sockets