Return proper exit status