Add exception handler at save file