Fix warnings and no-exit issue.