Bug Fix

Without these lines a stray powershell process can be left running.