there were two major requirements in creating a workable portal for shadowhunter use-keeping it stable and safely open for the necessary amount of time and safely closed when no longer needed , and accurately controlling the destination that a portal would open onto .