fix some rt cleanup and failure edge cases

The marker creation should be the absolute last thing to happen.