Clean up receive thread