Fix. return error from `init` function.
Change. Use separate allocation function for each queue.