async def cleanup_browser_session(browser: WebRoverBrowser) -> None:
    """
    Cleans up browser session using WebRoverBrowser's close method.
    This ensures proper cleanup of all resources including context, browser, and playwright.
    """
    try:
        if browser:
            await browser.close()
            print("Browser session cleaned up successfully")
    except Exception as e:
        print(f"Error during browser cleanup: {e}")
        raise

    Cleans up browser session using WebRoverBrowser's close method.
    This ensures proper cleanup of all resources including context, browser, and playwright.
    
backend/app/browser_manager.py