Managing exceptions thrown