class Net::SMTP

def finish

Raises IOError if not started.
Finishes the SMTP session and closes TCP connection.
def finish
  raise IOError, 'not yet started' unless started?
  do_finish
end