lib: Clean up creation of transport and runtime