Added next click handler for onFailure scenario