Change the behaviour of wait_for_result so it uses allow_error