strange workflow to follow. I think better one is 
```
if UI::ImportCertificateDialog.run(cert) != :import
  log.info "Certificate import rejected"
  return false
end

# rest of code unindented
```