More specific exception handling.