Proper exception handling.