Added throws of those exceptions in Middleware and ResourceManager interface.
Fixed type change of abort function in Client.