fix shutdown statistics