Allow Context injection for entry and exit actions