Properly stop timer upon termination.

Was causing a crash on OSX, this should prevent
the time from running upon plugin termination.