Added task not found exception and error msg