Restart properly when home changes

After fixing up the trainDB problem we can now restart
the mainwindows safely when the athlete directory changes.