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

Raises an exception if they do, this allows catching jobs that run too long.