Hi Fauricio Rojas Brenes,
Thanks for your post. Based on my research, to prevent closing via task manager, you can get "Process explorer" and set the permissions for "Guest" on the program to not have "Terminate" permissions. Find process in process explorer list and right-click "Properties" Security -> Permissions Select "Guest" -> Edit.
Best Regards,
Ian Xue
If the Answer is helpful, please click "Accept Answer" and upvote it.