Implemented pulling of tasks from queue, starting processes and error handling.