Remove unused arguments and imports

To improve efficiency, a small clean up is done.

1. The "daemonize" option is considered useless and removed.
2. Some useless import statements are removed.