return handles

See ticket 17870
https://bugs.dojotoolkit.org/ticket/17870#ticket

addOnWindowUnload and addOnUnload should return a handle so we can
disconnect the event if needed