The entire select case construct is terminated with:

End select

End if

Case End

Stop select