Only throw application exception to outside aplication.
Test main application invocation.