Remove unnecessary special exit.
Actually fix memory leaks!