Add hack to exit monitor mode when socket dies