Task queue operations now transactional (fixes #43)