The Brazilian goalkeeper ended his contract this season and extends his relationship for four seasons