Made error logging work from async. lolops