Add SessionManager::writeClose() to prevent blocking requests on session_start