Should run with -Wall to display warnings about unclosed sockets etc.