Set indicator job status on error

This is to fix #300.

The UI still needs to be updated to check for failure status while polling.
The use of null in scala is generally considered an anti-pattern. There might be a cleaner way to do this