Kill timer when nginx is exiting