remove useless synchronization
shutdown executors
Merge pull request #11 from CERT-Polska/js-deadlock

Js deadlock (issue #11)