STM: be more resilient to explicit Back + Sideff commands (closes: 3251)