By design the ResponsivePanel's close event triggers only on clicking its button, i.e. it is not fired when resizing the window. Currently there are no immediate plans to change this behavior.
Maximizing the window fires the window's resize event, which you can use to trigger the Panel's close event:
$( window ).resize(
Note that the window's resize event will fire for any resize not only for maximizing the window.