Don't exit from main() when it's not necessary

This change would help calling Pride from another JVM application