Fixed recv orderly shutdown, added RC4 encryption (39dll uses this)