better handling for one-shot and persistent errors

Signed-off-by: Tomas Neme <lacrymology@gmail.com>
add FilteredMessagesCollection

Signed-off-by: Tomas Neme <lacrymology@gmail.com>