Can we fly out of Ireland to my home (India), having entered on UK/Irish visa programme

I am planning to visit Ireland and would be applying for a UK short stay visa, I am planning to book flight tickets in such a way that I will satisfy the conditions specified by UK/Irish visa scheme for Indians(I will First enter UK and then travel to ireland, the same day). But the return ticket to home is from Dublin directly and I would want to know if there is rules that are specifically stated that I cannot fly back to home from Ireland, without visiting UK again. Thanks in advance.