added a guard for null status return; better logging