Fixed losing of logging messages. Added waiting between passes for kernel execution.

Fixed losing of logging messages. Added waiting between passes for kernel execution
for faster exiting/stopping and fluent working.