A robust Bayesian stopping rule for sequential trials