Create a flask context for each job execution

* Possible fix for #175