Errorfirst

on open and on close both incorrectly use error first pattern, and onclose references an undefined variable openInfo