framework app initialized and exceptions handler