Cleanup socket after stopping service