Improved error handling during creation of servers and clients.