So I guess there has been some Imperial forces hiding out for what 30 years.
Not hiding, just existing. It’s canon that the Empire didn’t just die with the Emperor, it just lost its figurehead. But it was a huge organization that ran with a lot of momentum and the war continued on in various forms for a very long time.