try to make sure not to do stuff if trial is over