make exitOnClose settable at any time

This method was never called, and even if it were there was no such boolean set on the Intent