@Override public void requestRun(Runnable runMe) { String newThreadName = jobEvent.toString(); Thread thread = new Thread(runMe, newThreadName); thread.setContextClassLoader(activity.getClass() .getClassLoader()); thread.setUncaughtExceptionHandler(new UncaughtExceptionHandler() { @Override public void uncaughtException(Thread t, Throwable e) { fail("Uncaught exception while invoking " + activity, e); } }); thread.start(); } }