fixed 'cannot open %U' and closing onboard properly bug