Re-added exit call for now as it is still used.