That will give you enough sail to keep moving into port at a safe but not reckless speed. If the wind is close to the bow, take down the jib. You can still move upwind using the mainsail. Do not cleat the mainsheet . Keep it in your hand so that you can luff and spill air quickly if wind threatens to knock you over.
Many small boats can be roller-reefed.
Pull your boom off the fitting until it turns. Then, while lowering the halyard, turn the boom so the sail wraps around it. Start by reducing your sail area by a third. To hold your position in a storm, you can heave to. The boat will move very slowly, if at all.