Fixed issue with kingdom close subcommand