Who pays for search and rescue operations in Maine?

Neighboring New Hampshire sometimes bills people for the cost.