Wrap get /tasks in a begin_and_rescue block