Except mysql lock errors and restart failed commit