Added more handling for null references. Cleaned up the SSL socket connection.
Merge pull request #6 from jturpen/master

Added more handling for null references.