Tapas Rai leaves the post of MLA