Camera opening and closing is handled