Change timeout, thread joining.

1. timeout set to 1min. (further discussion?)
2. all threads should be joined before quitting. Eg, in `quickrestart`, if call to `stop` exits before it times out, the actual `start` may called when process are `STOPPING`, and causes the process not to start.