Added flush on BatchProcessor to synchronously flush the remaning tasks.
Thread is joined when closing ThreadedPeriodicTaskQueue.
Merge branch 'master' of github.com:rFlex/SCJavaTools