If you want to stop nodeos:
or you can also use ./stop.sh script if this doesn't work.
This will allow you to stop nodeos gracefully, without getting the dirtyflag error when you start the nodeos next time.
The new documentation explains how logging works in nodeos.
You have to create a logging.json file in the config_dir for nodeos.
I believe (although I haven't tested it), that you can disable logging with:
The problem is that you don't have enough resourcecs staked to complete the action of unstaking your resources.
There are some services (such as bloks.io) that offer 5 free transactions per day, you can use them to unstake and transfer your funds
I found a repo with a JS program for listen to the node and get the blocks.
The fill.js came from another repo that I can't find the url anymore. But for future reference I want to close this question with this script that helped me develop my own solution.