Fix catch to get all exceptions