fixing terminate connection
remove static mule context
removing appleService usage