ide/Debugger: (#1031) Fixed crash on exit introduced by db47d1bdebf0680741ec1c59163529f87d1e8963