Add a button that cleans up, pauses then closes.