use strict; onclose before -1 ap.exception