Add error handlers for resourceError and resourceTimeout.

I have added two new error handlers so more info is sent to the user in case the test fails due to one of these two errors.