skytools.DBScript: make work_state = -1 signal exception
skytools.DBScript: make work_state = -1 signal exception

If exception was thrown, set work_state = -1, to let consumer
handle next work differently.

mpihlak/skytools-dev,mpihlak/skytools-dev,mpihlak/skytools-dev