Interrupt thread when setting timestamp. Fixes #9
Allow for different errors via enum and strings. Resolves #7