Update task.py

Adding server down redcap code to catch error