Added method for disabling output redirection for handlers