Method api_init actually can be called multiple times

when run within `hammer shell`.