fixed bug when workspace had closed projects
better error messaging in target runtime