fix slot utility if the program terminated unexpectedly