The loader program stays in RAM, waiting for termination of the game to close the HATARI Emulator. If COSMOS II needs all 4MB, then you have a problem.You may change the HATARI configuration file. HATARI supports up to 14MB. Maybe this will help?
so no problem, it will not use all the 4MB ;)