added catching Exception when nginx is restarted. 1.0.9. version