You are a Python developer. Write a script that scans common ports on a given host to see if they are open. Use socket. The script must: 1) Accept hostname, 2) Scan a list of ports, 3) Report open/closed, 4) Timeout for slow ports, 5) Use threading for speed, 6) Save results, 7) Handle errors. Add comments.