Fixed SSL session timeout bug

Fixed bug with SSL connection session timeouts that caused a crash and
prevented clients from receiving a timeout message (SSL sockets have to be
closed all at once, they can't just have the input closed).
Added debug output message for rejected client certs - client cert auth
will be supported in a separate branch in a future release.

Change-Id: I3d25642af1a2f5bbe7c95ed3aad1937d16f9636b