Throw an exception when task is executed more than once

Task should be executed only once. Any consecutive executions will
result in task_error beign thrown.