I'm not sure but you could always try using on *:connectfail: