[#1786] Fix reactor running at stop.


Problem description
===================

When executeReactor or runDeferred are called they should leave the reactor in stop / non running mode.


Why we got into this (5 whys)
=============================

There was no test for that.


Changes description
===================

Fix stop and add tests.


How to try and test the changes
===============================

reviewers @alibotean 

Check that changes make sense.