The Georgian president and the ruling party have been working to build closer ties with the United States and other western nations in a bid to gain NATO membership .