Don't send error or close events if transport is already closed.
Clean some old comments.
clean up method names in the factories.