Exceptions handling.