catch an exception that occures some times