Adding additional condition (checks 'CLOSED' status) for isNeedRead() method

If connection closed isNeedRead() always returns true. We need to check the status of SSLResult for it.