(PE-3657) Change type to class in expected-shutdown-reason?

This commit changes the precondition in the expected-shutdown-reason?
test helper to validate that the shutdown reason error is a
java.lang.Class rather than more generically implementing the
java.lang.reflect.Type interface.