#!/usr/bin/python3

import sys
import os

try:
    # Ensure the /usr/lib/supportutils-scrub/ directory is in the sys.path
    sys.path.insert(0, '/usr/lib/supportutils-scrub/')
    from supportutils_scrub.main import main
except KeyboardInterrupt:
    raise SystemExit()
except ImportError as e:
    print(f"Error importing the main module: {e}")
    sys.exit(1)

if __name__ == '__main__':
    try:
        # Call the main function with the command-line arguments
        main()
    except Exception as e:
        print(f"An error occurred during execution: {e}")
        sys.exit(1)
    finally:
        os._exit(0)