Try-catch was swallowing exceptions