Add exception catches and failure message return

Add exception catches and failure message return in uploading and deleting method