Reworked prototype tests to shut everything down after every execution.