adding code to remove setTimeouts when trial ends

issue #62