Split into three modules: Statistics, ticket checking and content resolving. Do not serve any file on errors, rather close client connection.