implemented stopping of the parser with disconnect by closing the client
updated toDo