kill application when the exception was thrown