Close the ad when the user closes the app or presses the lock button.