Added ThreadClosed and InvalidId Exceptions

Corrected javadoc of many throws