updated error logging for tar handler