Returns a function that takes one arg and uses that as an exception message to stop the given thread. Defaults to the current thread