Core/Transports: Fixed crashes when instance with transports unloads

Closes #11056