Fixed admin command close process.