[galaxy-dev] Improved error logging in TaskWrapper