Fix bug that conns are always closed insecurely.
Correct document of methods of record layer.
Remove useless condition.