Bugfix flash session handling: https://github.com/reyez/ninja/issues/70