Fix type of exception catch.