Fix missing wait call for background save