Are you saying that after the first try, the minimal.exe application works properly? I cannot explain this behaviour... It looks like a problem with app signature and not PocketHAL. Have you tried normal non-PocketHAL applications? If not, can you try one and see if you get a similar behaviour?
Looking at the log files, they are basically identical and both aren't showing any problems.
Also if minimal.exe now works properly, can you try firework.exe and see if it does the same thing?