Task end options

We might want to move this list to the ruby side (call it MESSAGE_TYPES or something)