Matt,
I wasn't faulting the messagebox, your post didn't say if it displayed or not, that would be an indication of whether or not the code got that far.
>I've commented out the "messagebox" and added a wait window instead. It'll be interesting to see if it solves the problem. A bit voodooish maybe, but given similar problems with 2.6 I don't see the harm in trying it.