when they were gone , kotak and yaggee set to work ordering the guards to secure the doors and gates of the palace complex for security was now their top priority with the completion of the invasion .