A coffee chain known for supporting veterans and patriotism is closing stores after losing money in its most recent quarter.