powershell empire

i have an active agent but it seems to stop responding when the target machine restarts or shutdown
i followed all the tutorial along and set the stager to switch when the user login