Add space so longopts line up.
Use $(whoami) to get username and check failure.
Fix foreman and master names comparison
Add task termination status to result
Adds signal, resources exhaustion and task timeout as results
Changes status to exit_status at worker
Report task_status in result