Removing unused import
Improving log
Extracting __initial_services
Implemeting the graceful shutdown