rework launching of dropwizard (use extra task and finalizer)