main() now exits with proper status codes for the targets that supports it.