PM-747 need to exit with status at the end.