Ok, that confirms the code gets executed twice. I guess you will also see a double Disarm in the Heimdall log, could you check that and post a screenshot here?
(To make the log more readable, open it on the developer pages and use this tip)
(Btw, did you happen to try the number 1 IT solution already: the infamous reboot?)