Recover from closed stream