Added a socket destroy method, just to keep things clean.