Replace implicit catches of Throwables with explicit catches.