Fixing Fatal Error with Console App

I have rbac working with html, but when i try any console command i got:

Fatal error: Call to undefined method Zend\Console\Response::setStatusCode() in <project>/vendor/zf-commons/zfc-rbac/src/ZfcRbac/View/UnauthorizedStrategy.php on line 126

I guess the is no need for rbac in console app, so should return without attaching the events. 

Is there a better way?