removing workers, creating the temp directory if it doesnt exist