Added better error handling to parallel_computation.py