Remove superfluous exception classes, move queue classes to the root directory