BUGFIX: segfault on error during subscribe, fixed deadlock