make ResourceWarning an error