Some bug fixes: bridge object was too early released when logged out.
Initialization is now done in broker open.
Added broker error calls.