1. Why do you actually need to open it?
2. If the user is using notepad, why can't they close it them self?