BUG-15489 Knox gateway does not behave properly as a windows service