Fix activity dismissal for online layer failure only