Try more complex check for unload