What to use to stop tranmission fluid from leaking,when

What can i use to stop the fluid from leaking out the tail stock when i remove the engine and transmission the week.Had a big time spill 2 years back.