Change value of error state.
Use state field for ordering priority, close #11.
Set finished field for results which has no error.
`_log` function will not change result state anymore.
Enable TTL index for result collection, close #13.