Remove direct access checks
Remove more direct access checks
Add exit to the top of log files
Merge pull request #529 from lenton/3.4/feature/remove-direct-access-checks

Remove direct access checks