Critical service and event scheduling bugs

Fixed -> The default task scheduler is selected if current
synchronization is unavailable .

Fixed -> Buffer overflow when trying to get service name from display
name, or vise versa.

Fixed -> Handle exceptions after closing or deleting service object with
event.