[sessionmanager] fixed delete bug;
[error handling] improved errorhandling: consumer error gets logged, new
api message type "shutdown";