set transport to null on Error