"Fixes" TCP and UDP socket with custom loops.

Yea how about you actually stop the loop the socket runs on instead
of the default loop?! - No Twinkie for you!