[API] worker made stoppable, untested yet
socket init on startup fixed
worker made stoppable
Merge branch 'feature/stoppable' into develop