* disabling plugin if an error has occured when applying to a request/response
* [ruby] few optimisation and check