How to force service shutdown