Polling of current target system state was done non-blocking until now. Because of this, when the target was executing a longer time, the main-loop was walked through several times and so unwanted state changes were triggered. After this fix, the polling of execution state is blocking in a while-loop until the target system hits any halting condition. Also added some minor fixes Change-Id: I4cbbef6eb6ff6ff8a3451affb8409a0df6a95fc5