It is normal to have some coffee or water left in the portafilter after cleaning or emptying it. However, if you notice that the portafilter is leaking more than usual, it means it was not emptied before making another coffee. To prevent this, empty the portafilter after each brew, rinse it, and then shake off any excess water to avoid any leakage.