add logic to exit when no messages to cull