Fixed IO deadlock when running SNAP as a read frontend.