Added error handling via context_notify& to context class.
Prepared queue class.