handle the exception