Simple Go script to close applications before logging system shutdown event and turning off / rebooting the system