My question is if my application is running and the user tries to
logoff or shutdown he should not be able to do it.