Fixed spinning the event loop and tested its functionality.
- added 2 unit tests for the event loop
- way of aborting of the execution thread has is now synchronous