Updated logic for stoping ODL to work with Karaf

Signed-off-by: Daniel Farrell <dfarrell@redhat.com>