Added the fix for memory leak
Fixed initialization variable for the begin without DHCP
Added check for maintain before initialized
Added more checks around the status fields