waiting dialog: handle exceptions