improved error handling
allow to cancel query in GUI (does not work in service yet) and wait maxmimal 1 second for query validation in order to be more stable