Generalize exception catching in MB send loop