Change to Environment.exit instead of return