Replacing quit+print with exist

Just to test out pull-requests, bigger edit if I get time.