A bit better error handling
Fix default initialization of command queue