The entire select case construct is terminated with:

End if

Case End

End select

Stop select