Restores the original brightness when the app is closed