minore change in dispatcher
catch interrupt in workerthread