added new safety so if the program crashes the pru will quit within a second