def close_plot(__window, __event, plot, parent):
    """
    Function to close the plot.

    :param gtk.Window __window: the gtk.Window() that is being destroyed.
    :param gtk.gdk.Event __event: the gtk.gdk.Event() that called this method.
    :param matplotlib.FigureCanvas plot: the matplotlib.FigureCanvas() that was
                                         expanded.
    :param gtk.Widget parent: the original parent gtk.Widget() for the plot.
    :return: False if successful or True if an error is encountered.
    :rtype: bool
    """

    plot.reparent(parent)

    return False