fixed service bug with exit dialog