Fixed issue with apache restart race condition