Return error code if populate is not runnnig

Requested by Jess