Bugfix: detect if pause/continue is triggered in inappropriate states.