Fix for dbhandler delinstance