Removed notifycomplete from background agent as it doesn't wait for async responses to complete.