Rejigged the SQS handler so that its able to wrap around the execution cleanly and detect jobs that run too long