Make sure sockets can't be copied
Check flags to ensure they work as expected