Senate president Scott Ryan to leave parliament next month :