trying to workaround bug with Qt crash - remove 'env' in error handler