Remove the sync and sleep since it was gpg-agent causing umounting issues