workqueue: implement shutdown

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>