Catch all errors and remove unused var.