finish long-poolling exercise