Fixed bug, where runtime wasn't deleted. (fixes #908)