add 'close' tag to logs and change from exit to continue in close parsing block