STORM-329: fix continue flush after client had been closed