Changed Errorf to Fatalf in mock.go to report errors early.