Add try, except to cath any error in the read and write
Add try, except to cath any error in the read and write
Add try, except to cath any error in the read and write
Add try, except to cath any error in the read and write
Add try, except to cath any error in the read and write