better errors if sockets can't be opened