Close socket on exception.
Implement ident parser that looks for identifiers in the file and
records their positions.
Also add a condition for min identifier length.
Adjust min identifier length.