Commented out System.exit(0) so that it doesn't close the calling app as well.