Catch specific errors and log them appropriately