Zahra Kazemi was raped, tortured and murdered in an Iranian prison while the embassy was open under Jean Chretien.

Ms. Hoodfar was released from prison while the embassy was closed.

Therefore having an embassy seems to not be of any help.