changed prototype inheritance to be consistent with engine.io; added javadocs
close socket if 'forced close'