Added configurable stack trace returns in 500 errors