exception treatment on unsubscribe method

exception treatment on unsubscribe method
adding factory method pattern and resources