Cleanup profile when restarting B2G on devices. Fixes issue #543