Can you show us the code you tried. ‘Me’ has different meanings depending on where you call it from. Also you need to check your ShutDown mode.

Project—>Properties—>Application—> ShutDown mode