Fixed few resource leaks and added secstoragefirewallcfg command support to simulator

Signed-off-by: Daan Hoogland <daan@onecht.net>