Make sure the frontier api is always closed, refactor the info messages