Fix typos in comments
ruby: Handle shutdown error in receive thread
ruby: Add authentication support
php: Add authentication support