added command line reset_password for root passwords
try to join threads upon shutdown