Which exceptions are being caught here? We usually try to avoid blanket exceptions like this.