cubicweb #1433117 Can't delete an instance that doesnot have its database anymore [resolved]

For some reason I have an instance without a database, but I can't remove that instance because it crashes on the drop db command.

Example

# cubicweb-ctl delete openidrelay
Delete database openidrelay ? [Y/n]: y
-> connecting to postgres database template1@localhost
WARNING
the user will need the following special access rights on the database:
DROP DATABASE USER

Connect as user ? ['cubicweb']:
Traceback (most recent call last):
  File "/usr/bin/cubicweb-ctl", line 4, in <module>
    run(sys.argv[1:])
  File "/usr/lib/python2.6/cubicweb/cwctl.py", line 962, in run
    CWCTL.run(args)
  File "/usr/lib/pymodules/python2.6/logilab/common/clcommands.py", line 128, in run
    sys.exit(command.main_run(args, rcfile))
  File "/usr/lib/pymodules/python2.6/logilab/common/clcommands.py", line 257, in main_run
    self.run(args)
  File "/usr/lib/python2.6/cubicweb/cwctl.py", line 439, in run
    helper.cleanup()
  File "/usr/lib/python2.6/cubicweb/server/serverctl.py", line 216, in cleanup
    cursor.execute('DROP DATABASE %s' % dbname)
psycopg2.ProgrammingError: database "openidrelay" does not exist
prioritynormal
typebug
done in3.10.8
load0.100
load left0.000
closed by#f691757792f9 [c-c delete] closes #1433117 and other flavours where we don't want to crash on error