exec: keep same code style and restore return