Write a Python program that:
- Has a Task class with attributes: id, title, description, and status.
- Can add tasks, list all tasks, and mark a task as completed.
- Saves and loads the tasks from a file named 'tasks.json'.
- Includes basic error handling for file operations.