Bugfix for clearlocaldir, better cleanup on restart, deal with fractional maxperhost.