fixed debug build for new Makefile
added stream detach messages
return an error if we can't attach the receiver on startup