reset security manager before quit