You can only exit from the main gate, you can’t exit from the side gates