Made a small change to the way soape.xml is handled at shutdown

Signed-off-by: Daniel <Daniel@192.168.54.0>