breakpoints: fix error handling