Is it possible that you are using system.exitFlow() in any of the Server Mode Connector Hooks? If so then this will fail, since you are not in the Flow section - but rather in Feed. To stop the AL use task.shutdown(). Since this is a Server Mode Connector driven AL, there will be a pool of AL Flow sections (AssemblyLine settings > Define Pool Settings > Min and Max pool size). When you make one of these threads shut down, they simply go to 'sleep' back in the pool. No connections are actually closed. That only happens if the main thread, the one listening for client connections stops.