Cleanup recv loop