Prevent exception when sending shutdown
Change default port for client
Allow server to search and bind a port