Implemented retry code for server start.