Add a finally clause after the catch. that should do the trick
try
{
//main code
try
{
//child code
}
catch(Exception ex)
{
//display error message from child code
}
}
catch(Exception ex)
{
//display error message from main code
}
finally
{
//exit the code block
}