Make sure that all asyncronous requests have completed before code is run
Input files might be missing. May be a bit of an edge case in the local setting, but more relevant in a cloud environment if people click Upload
and Run
immediately after each other. This can be implemented with a super ugly global state that counts requests and handlers that decrement it.