Remove emittar after failure to start since we can not start it twice.
Fix lint errors.