listen() could be called more than once on the transport layer, make sure last context and sockets are terminated before listening on new url