Rename terminate() to post_terminate() and define queue id.