Fix try catch block that was catching serialization errors.