Fixed exception handing in circuits.web