automatic express app shutdown if it's no longer needed