adds support for throwing exceptions from async wrapped functions
enables application support
disables main exception handler when debug parameter is used