Fix NullReferenceError in CloseTarget()
Defaults to "Release"