Added threading to ResultServer task deletion to prevent the parent call from getting stuck.