afb-stub-ws: Fix segfault on diconection