Fix mulitprocessing

fixes #76, #152 and further if "stop multiprocessing" is clicked, the logger gets cleaned up i.e. the socket is closed, and the worker pool can join without getting blocked by the SocketServer.