Stop threads that are still running.
Add a startupdialog
Added API for initializing a component.