added possibility to cancel deferred on controller exceptions