redo the logic of shutdown event handler

actionPerform will only prompt for user/pass if the currently logged user is not a manager