Feature/provisioner apis

I think there is an extra statement.close()