Add saving screenshot on errors