Stop synchronizing if any exception occurs