Core: fix order when releasing resources on service_end()
Core: fix order when releasing resources on service_end()

Signed-off-by: Eduardo Silva <b6525c140147034c280e3cd2f39161f32f3f4f62@gmail.com>

monkey/duda,monkey/duda