The program won't crash on query fail

I added a note on that in the main loop, you can delete the comment if you want afterwards