Make app start up thread safe. Starting up under load may've lead to multiple application instances