[WIP] Remove LegacyPromise in src/core/worker.js
Handle incorrect password