tvhdhomerun: check return values of setsockopt
tvhdhomerun: properly close sockets on error
packet: remove aligned_alloc