Since 2004 , the U.N. force in Haiti has been working to restore security and battle impunity in the impoverished nation .