Cleaning up rail for re-use.