Fix some deprecation warnings - add method to stop a thread with a given throwable that should work with java 8, suppress warning for ContextAccessReflection as it is tested and automatically not used if the sun internal API doesn't do what we expect.

Signed-off-by: Ross Allan <rallanpcl@gmail.com>