if case of when receive end try catch throw fun after