This is the wrong place to mark the server ready. Servers need to be marked ready in the MPM -after- lingering close processing. This could be playing havoc with perform_idle_server_maintenance.