Made UDPSocket extend Disposable

This allows closing the socket