transports: handle issues with thread spawning