Documented defer accept code and wrapped in exception handler