Make hard shutdown work for now by using sync