allow failed -> rejected transition

fixes #5021